package com.h3c.ptability.entity;

import javax.persistence.*;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: PtDept
 *
 * @Author: l22886
 * @Date: 2022-03-14
 * Description: pt_dept 实体
 * Version: 1.0
 */
@ApiModel(value="PtDept对象", description="")
@Table(name = "pt_dept")
public class PtDept {


    @ApiModelProperty(value = "部门id")
    @Column(name = "dept_id")
    @TableId
    private Integer deptId;

    @ApiModelProperty(value = "部门名称")
    @Column(name = "dept_name")
    private String deptName;

    @ApiModelProperty(value = "部门名称英文")
    @Column(name = "dept_name_en")
    private String deptNameEn;

    @ApiModelProperty(value = "一级部门简称")
    @Column(name = "short_name")
    private String shortName;

    @ApiModelProperty(value = "部门等级")
    @Column(name = "dept_level")
    private Integer deptLevel;

    @ApiModelProperty(value = "上级部门id")
    @Column(name = "parent_id")
    private Integer parentId;

    /**
     *  1 代表部门有效
     *  2 代表部门失效
     */
    @ApiModelProperty(value = "部门状态")
    @Column(name = "dept_status")
    private Integer deptStatus;

    @ApiModelProperty(value = "全链路部门名称")
    @Column(name = "dept_name_chain")
    private String deptNameChain;

    @ApiModelProperty(value = "全链路部门编码")
    @Column(name = "dept_code_chain")
    private String deptCodeChain;

    @ApiModelProperty(value = "部门主管工号")
    @Column(name = "dept_manager_id")
    private String deptManagerId;

    @ApiModelProperty(value = "部门主管名称")
    @Column(name = "dept_manager_name")
    private String deptManagerName;

    @ApiModelProperty(value = "部门分类ID")
    @Column(name = "dept_category")
    private Integer deptCategory;

    @ApiModelProperty(value = "干部部体系ID")
    @Column(name = "dept_system")
    private Integer deptSystem;

    @ApiModelProperty(value = "一级部门统计（实际所属部门体系）")
    @Column(name = "belong_deptname")
    private String belongDeptname;


//    private String serviceManager;

//    public String getServiceManager() {
//        return serviceManager;
//    }

//    public void setServiceManager(String serviceManager) {
//        this.serviceManager = serviceManager;
//    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptNameEn() {
        return deptNameEn;
    }

    public void setDeptNameEn(String deptNameEn) {
        this.deptNameEn = deptNameEn;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public Integer getDeptLevel() {
        return deptLevel;
    }

    public void setDeptLevel(Integer deptLevel) {
        this.deptLevel = deptLevel;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getDeptStatus() {
        return deptStatus;
    }

    public void setDeptStatus(Integer deptStatus) {
        this.deptStatus = deptStatus;
    }

    public String getDeptNameChain() {
        return deptNameChain;
    }

    public void setDeptNameChain(String deptNameChain) {
        this.deptNameChain = deptNameChain;
    }

    public String getDeptCodeChain() {
        return deptCodeChain;
    }

    public void setDeptCodeChain(String deptCodeChain) {
        this.deptCodeChain = deptCodeChain;
    }

    public String getDeptManagerId() {
        return deptManagerId;
    }

    public void setDeptManagerId(String deptManagerId) {
        this.deptManagerId = deptManagerId;
    }

    public String getDeptManagerName() {
        return deptManagerName;
    }

    public void setDeptManagerName(String deptManagerName) {
        this.deptManagerName = deptManagerName;
    }

    public Integer getDeptCategory() {
        return deptCategory;
    }

    public void setDeptCategory(Integer deptCategory) {
        this.deptCategory = deptCategory;
    }

    public Integer getDeptSystem() {
        return deptSystem;
    }

    public void setDeptSystem(Integer deptSystem) {
        this.deptSystem = deptSystem;
    }

    public String getBelongDeptname() {
        return belongDeptname;
    }

    public void setBelongDeptname(String belongDeptname) {
        this.belongDeptname = belongDeptname;
    }

    @Override
    public String toString() {
        return "PtDept{" +
                "deptId=" + deptId +
                ", deptName='" + deptName + '\'' +
                ", deptNameEn='" + deptNameEn + '\'' +
                ", shortName='" + shortName + '\'' +
                ", deptLevel=" + deptLevel +
                ", parentId=" + parentId +
                ", deptStatus=" + deptStatus +
                ", deptNameChain='" + deptNameChain + '\'' +
                ", deptCodeChain='" + deptCodeChain + '\'' +
                ", deptManagerId='" + deptManagerId + '\'' +
                ", deptManagerName='" + deptManagerName + '\'' +
                ", deptCategory=" + deptCategory +
                ", deptSystem=" + deptSystem +
                ", belongDeptname='" + belongDeptname + '\'' +
                '}';
    }
}
